package chapter06;

public class Test02_StringEquals {
    public static void main(String[] args) {
        String a = "abc";
        String b = "abc";
        System.out.println(a==b);
        String c = new String(a);
        System.out.println(a==c);
        //使用方法判断 可以直接比较字符串的内容
        System.out.println(a.equals(c));
    }
}
